<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div class="one">
        <div class="two">
            <div class="three">
                <div class="four">我不容易</div>
            </div>
        </div>
    </div>
    <script>
        console.log($('.four').parent().parent().parent());
        // 返回的是一个数组
        console.log($('.four').parents());
        // 类次 children 的用法, 无参, 则返回全部元素
        console.log($('.four').parents('.one'));
    </script>
</body>
</html>